package com.itic.appbase.framework.type;

public enum LivingRateType {
	
	
	Invite("invite","好友邀请"),Cousume("consume","消费能力"),Share("share","分享频率"),Use("use","使用频率"),Shopping("shopping","购物行为"),CommissionRate("commissionRate","佣金比例");
	
	private String type;
	
	private String name;

	LivingRateType(String type, String name) {
		this.type = type;
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public static LivingRateType getLivingRateType(String type) {
		LivingRateType LivingRateType = null;
		switch (type) {
		case "invite":
			LivingRateType = LivingRateType.Invite;
			break;
		case "consume":
			LivingRateType = LivingRateType.Cousume;
			break;
		case "share":
			LivingRateType = LivingRateType.Share;
			break;
		case "use":
			LivingRateType = LivingRateType.Use;
			break;
		case "shopping":
			LivingRateType = LivingRateType.Shopping;
			break;
		case "commissionRate":
			LivingRateType = LivingRateType.CommissionRate;
			break;
		}
		return LivingRateType;
		
	}
	
	
}
